﻿@model ITProject.WebUI.Models.ProjectUser.ProjectUserMyTaskDetailsViewModel
@{
    ViewBag.Title = "Szczegóły zadania";
    Layout = "~/Views/Shared/_Layout.cshtml";
}




<h2>Panel użytkownika projektu @ViewData["projectName"].ToString()</h2>




<div class="Pmenu">
@Html.Partial(MVC.Shared.Views.Partials._ProjectMenuControl,
new ITProject.WebUI.Models.Project.ProjectMenuViewModel { ProjectName = ViewData["projectName"].ToString(), Role = ITProject.Domain.UserRole.Supervisor })
</div>



<div class="PAmenu">
@Html.Partial(MVC.Shared.Views.Partials._ProjectUserMenu, new List<string> { "Z", ViewData["projectName"].ToString() })
@*@Html.ActionLink("Zarządzaj użytkownikami",MVC.ProjectAdmin.ActionNames.ManageTeam, MVC.ProjectAdmin.Name, new { projectName = Model }, null)*@
</div>
<div class="PAplane">

    @Html.ValidationSummary(true)
    <fieldset>
        @Html.HiddenFor(model => Model.TaskId)
        <legend>Szczegóły zadania</legend>
            <div style="color:White; background-color:Maroon; text-align:center">
              @Html.DisplayFor(model=>Model.Name)
            </div>
        
         <div class="editor" style="width:100%">
            <div class="call" style="width:200px">
                @Html.LabelFor(model => model.Status)
            </div>
            <div class="call"  style="width:410px">
            @Html.DisplayFor(model => model.Status)
               @* @Html.DropDownListFor(model=>model.SelectProjectUser,Model.ProjectUsers, new { @class = "input" })*@
            </div>
        </div>


        <div class="editor">
            <div class="call" style="width:200px">
                @Html.LabelFor(model => model.Priority)
            </div>
            <div class="call" style="width:410px">
            @Html.DisplayFor(model => model.Priority)
               @* @Html.DropDownListFor(model=>model.SelectProjectUser,Model.ProjectUsers, new { @class = "input" })*@
            </div>
        </div>
         <div class="editor">
            <div class="call" style="width:200px">
                @Html.LabelFor(model => model.Feature)
            </div>
            <div class="call" style="width:410px">
            @Html.DisplayFor(model => model.Feature)
               @* @Html.DropDownListFor(model=>model.SelectProjectUser,Model.ProjectUsers, new { @class = "input" })*@
            </div>
        </div>
         <div class="editor">
            <div class="call" style="width:200px">
                @Html.LabelFor(model => model.StartDate)
            </div>
            <div class="call" style="width:410px">
            @Html.DisplayFor(model => model.StartDate)
               @* @Html.DropDownListFor(model=>model.SelectProjectUser,Model.ProjectUsers, new { @class = "input" })*@
            </div>
        </div>
         <div class="editor">
            <div class="call" style="width:200px">
                @Html.LabelFor(model => model.PlannedEndDate)
            </div>
            <div class="call" style="width:410px">
            @Html.DisplayFor(model => model.PlannedEndDate)
               @* @Html.DropDownListFor(model=>model.SelectProjectUser,Model.ProjectUsers, new { @class = "input" })*@
            </div>
        </div>
         <div class="editor">
            <div class="call" style="width:200px">
                @Html.LabelFor(model => model.Description)
            </div>
            <div class="call" style="width:410px">
            @Html.DisplayFor(model => model.Description)
               @* @Html.DropDownListFor(model=>model.SelectProjectUser,Model.ProjectUsers, new { @class = "input" })*@
            </div>
        </div
        >
       <div style="color:White; background-color:Maroon; text-align:center">
              Historia zmian
       </div>
       <div class="editor">
                <div class="call" style="width:100px; color:White; background-color:Maroon">Stary status</div>
                <div class="call" style="width:100px; color:White; background-color:Maroon">Nowy status</div>
                <div class="call" style="width:130px; color:White; background-color:Maroon">Data zmiany</div>
                <div class="call" style="width:170px; color:White; background-color:Maroon">Komentarz</div>
                <div class="call" style="width:100px; color:White; background-color:Maroon">Przez</div>

       </div>

       @foreach (var item in Model.TaskStatusChanges)
       {
            <div class="editor">   
                <div class="call" style="width:100px;min-height:40px;">@Html.DisplayFor(items=>item.OldStatus)</div>
                <div class="call" style="width:100px;min-height:40px;">@Html.DisplayFor(items=>item.NewStatus)</div>
                <div class="call" style="width:130px;min-height:40px;">@Html.DisplayFor(items=>item.DateOfChange)</div>
                <div class="call" style="width:170px;min-height:40px;">@Html.DisplayFor(items=>item.Comment)</div>
                <div class="call" style="width:100px;min-height:40px;">@Html.DisplayFor(items=>item.User)</div> 
            </div>     
       }
 
    </fieldset>


</div>
<div class="clear">
</div>








